<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="paging" class="pagination">
  <ul>
	 <li><a href='javascript:moveCategoryPaging("/1168","253953")' class="" id="prevPage">이전</a></li>
	<c:forEach var="i" begin="0" end="${pageCount}">
		<c:choose>
			<c:when test="${page == i}">
				<li><a href="#">${i}</a></li>
			</c:when>
			<c:otherwise>
				<li><a href="category.do?page=${i}&categoryCode=${categoryCode}">${i}</a></li>
			</c:otherwise>
		</c:choose>
	</c:forEach>
				
	<!-- <span class="numbox">
		
		<a href='javascript:moveCategoryPaging("/1277","253953")' class="num"> <span>1</span></a>
		
		<a href='javascript:moveCategoryPaging("/1273","253953")' class="num"> <span>2</span></a>
		
		<a href='javascript:moveCategoryPaging("/1237","253953")' class="num"> <span>3</span></a>
		
		<a href='javascript:moveCategoryPaging("/1168","253953")' class="num"> <span>4</span></a>
		
		<a class="num"> <span class="selected">5</span></a>
		
		<a href='javascript:moveCategoryPaging("/1080","253953")' class="num"> <span>6</span></a>
		
		<a href='javascript:moveCategoryPaging("/1010","253953")' class="num"> <span>7</span></a>
		
		<a href='javascript:moveCategoryPaging("/1000","253953")' class="num"> <span>8</span></a>
		
		<a href='javascript:moveCategoryPaging("/982","253953")' class="num"> <span>9</span></a>
		 <span class="interword">...</span> 
		<a href='javascript:moveCategoryPaging("/315","253953")' class="num"> <span>19</span></a>
	</span> -->
	<li><a href='javascript:moveCategoryPaging("/1080","253953")' class="" id="nextPage">다음</a></li>
 </ul>
</div>